package com.csii.modules.project.service;

import com.csii.modules.project.mapper.entity.ProjectUser;
import com.csii.modules.project.service.dto.ProjectUserDTO;
import com.csii.modules.project.mapper.entity.Project;
import com.csii.modules.project.service.dto.ProjectDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 项目
 * @Author: power-stdio
 * @Date:   2020-11-05
 * @Version: V1.0
 */
public interface IProjectService extends IService<Project> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(ProjectDTO projectDTO,List<ProjectUserDTO> projectUserDTOList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(ProjectDTO projectDTO,List<ProjectUserDTO> projectUserDTOList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 *根据userName查询
	 * @param userName
	 * @return
	 */
	List<ProjectDTO> queryList(String userName);
}
